<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<script type="text/javascript">
	function checkData(){
		var keyword=document.getElementById("keyword").value.trim();
		if(keyword==null||keyword==""){
			alert("请输入您要查询的关键字！");
			return false;
		}else{
			return true;
		}
		
	}
</script>
	<!-- 导航栏 start -->
	<div class="row " >
		<nav class="navbar navbar-default">
		  <div class="container-fluid">
		    <!-- Brand and toggle get grouped for better mobile display -->
		    <div class="navbar-header">
		      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
		        <span class="sr-only">Toggle navigation</span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		      </button>
		      <a class="navbar-brand" href="${pageContext.request.contextPath}/index.html">首页</a>
		    </div>
		
		    <!-- Collect the nav links, forms, and other content for toggling -->
		    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
		      <ul class="nav navbar-nav">
		        <li><a href="${pageContext.request.contextPath}/blogger/aboutMe.html">关于博主</a></li>
		       <%--  <li><a href="${pageContext.request.contextPath}/download.html">本站源码下载</a></li> --%>
		      </ul>
		      <form action="${pageContext.request.contextPath}/blog/search.html" method="post" class="navbar-form navbar-right" onsubmit="return checkData()">
		        <div class="form-group">
		         
		           <input type="text" id="keyword" name="keyword" value="${keyword}" class="form-control" placeholder="请输入要查询的关键字...">
		        </div>
		        <button type="submit" class="btn btn-default">搜索</button>
		      </form>
		    </div><!-- /.navbar-collapse -->
		  </div><!-- /.container-fluid -->
		</nav>
	</div>
	<!-- 导航栏 end -->